<p id="notice"><%= notice %></p>

<p>
  <b>User:</b>
  <%= @purchase.user_id %>
</p>


<table class="table table-striped table-bordered" >
	<thead>
		<tr>
			<th> Item</th>
			<th> Size </th>
			<th> Qty </th>
		</tr>
	</thead>
	<tbody>
		<% @purchase.purchase_items.each do |item| %>
			<tr>
				<td><%= item.product.item_number %></td>
				<td><%= item.size.name %></td>
				<td><%= item.quantity %></td>
			</tr>
		<% end %>
	</tbody>
</table>

<%= link_to 'Edit', edit_purchase_path(@purchase) %> |
<%= link_to 'Back', purchases_path %>
